package com.zut.fitness.controller;


import com.zut.fitness.common.Result;
import com.zut.fitness.pojo.HomeImage;
import com.zut.fitness.service.HomeImageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/homeImage")
public class HomeImageController {
    @Autowired
    private HomeImageService homeImageService;

    @GetMapping
    public Result<List<HomeImage>> getHomeImage(){
        return homeImageService.getHomeImage();
    }
}
